package com.ruoyi.project.visit.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;
import java.util.Objects;

/**
 * 患者实体类型
 */
public class DoctorPatient extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer patientId;
    /** 姓名 */
    private String patientName;
    /** 身份证号 */
    private String patientCard;
    /** 性别 */
    private String patientSex;
    /** 年龄 */
    private Integer patientAge;
    /** 电话 */
    private String patientPhone;
    /** 生日 */
    private Date patientBirth;
    /** 状态，0-未完善。 1-已完善 */
    private String patientStatus;
    /** 地址 */
    private String patientAddress;
    /** 过敏史 */
    private String patientHistory;

    @Override
    public String toString() {
        return "DoctorPatient{" +
                "patientId=" + patientId +
                ", patientName='" + patientName + '\'' +
                ", patientCode='" + patientCard + '\'' +
                ", patientSex='" + patientSex + '\'' +
                ", patientAge=" + patientAge +
                ", patientPhone='" + patientPhone + '\'' +
                ", patientBirth=" + patientBirth +
                ", patientStatus='" + patientStatus + '\'' +
                ", patientAddress='" + patientAddress + '\'' +
                ", patientHistory='" + patientHistory + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DoctorPatient that = (DoctorPatient) o;
        return Objects.equals(patientId, that.patientId) &&
                Objects.equals(patientName, that.patientName) &&
                Objects.equals(patientCard, that.patientCard) &&
                Objects.equals(patientSex, that.patientSex) &&
                Objects.equals(patientAge, that.patientAge) &&
                Objects.equals(patientPhone, that.patientPhone) &&
                Objects.equals(patientBirth, that.patientBirth) &&
                Objects.equals(patientStatus, that.patientStatus) &&
                Objects.equals(patientAddress, that.patientAddress) &&
                Objects.equals(patientHistory, that.patientHistory);
    }

    @Override
    public int hashCode() {
        return Objects.hash(patientId, patientName, patientCard, patientSex, patientAge, patientPhone, patientBirth, patientStatus, patientAddress, patientHistory);
    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getPatientCard() {
        return patientCard;
    }

    public void setPatientCard(String patientCode) {
        this.patientCard = patientCode;
    }

    public String getPatientSex() {
        return patientSex;
    }

    public void setPatientSex(String patientSex) {
        this.patientSex = patientSex;
    }

    public Integer getPatientAge() {
        return patientAge;
    }

    public void setPatientAge(Integer patientAge) {
        this.patientAge = patientAge;
    }

    public String getPatientPhone() {
        return patientPhone;
    }

    public void setPatientPhone(String patientPhone) {
        this.patientPhone = patientPhone;
    }

    public Date getPatientBirth() {
        return patientBirth;
    }

    public void setPatientBirth(Date patientBirth) {
        this.patientBirth = patientBirth;
    }

    public String getPatientStatus() {
        return patientStatus;
    }

    public void setPatientStatus(String patientStatus) {
        this.patientStatus = patientStatus;
    }

    public String getPatientAddress() {
        return patientAddress;
    }

    public void setPatientAddress(String patientAddress) {
        this.patientAddress = patientAddress;
    }

    public String getPatientHistory() {
        return patientHistory;
    }

    public void setPatientHistory(String patientHistory) {
        this.patientHistory = patientHistory;
    }
}
